#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May  4 16:02:20 2022

@author: cythnia
"""

import pandas as pd
import numpy as np
data=pd.read_excel('/Users/cythnia/Desktop/2.xlsx')
data
df = data.iloc[1:3,1:4].rolling(3,axis=1).sum()
df2=data.rolling(3,axis=1).sum()
df2
